package com.example.chat.beans;

import cn.hutool.core.date.DatePattern;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@NoArgsConstructor
@TableName("tb_video_type")
public class VideoType {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    private Integer parentId = 0;//父级id
    private String name;//类型名称
    private int sort; // 排序
    @JsonFormat(pattern = DatePattern.NORM_DATETIME_PATTERN)
    private Date updateTime;//修改时间
    @JsonFormat(pattern = DatePattern.NORM_DATETIME_PATTERN)
    private Date createTime;//创建时间
    private Integer isDelete;//是否删除 0 有效 1 删除

}
